package com.group5.onlinegame.service;

import com.group5.onlinegame.dao.IFeedbackDao;
import com.group5.onlinegame.entity.Feedback;
import com.group5.onlinegame.entity.FeedbackReturn;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FeedbackService implements IFeedbackService {

    @Resource
    private IFeedbackDao feedbackDao;

    @Override
    public List<Feedback> getFeedback(Feedback feedback) {
        return feedbackDao.getFeedback(feedback);
    }

    @Override
    public List<FeedbackReturn> getFeedbackReturn() {
        return feedbackDao.getFeedbackReturn();
    }

    @Override
    public Integer returnFeedback(FeedbackReturn feedbackReturn) {
        return feedbackDao.returnFeedback(feedbackReturn);
    }

    @Override
    public Integer changeIsReturn(Integer id) {
        return feedbackDao.changeIsReturn(id);
    }
}
